<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">
    <h:head>
        <title>Modify Degree Programs</title>
    </h:head>
    <h:body>
        <h:message for="form"/>
        <h:form id="form">
            <h:dataTable value="#{degreeProgramBean.degreeProgramClasses}" var="degreePrograms">
                <h:column>
                    <f:facet name="header">Identifier</f:facet>
                    <h:inputText value="#{degreePrograms.identifier}" disabled="true" size="20" />
                </h:column>
                <h:column>
                    <f:facet name="header">SeqNumber</f:facet>
                    <h:inputText value="#{degreePrograms.seqNum}" size="20" />
                </h:column>
                <h:column>
                    <f:facet name="header">Description</f:facet>
                    <h:inputText value="#{degreePrograms.description}" size="20" />
                </h:column>
                <h:column>
                    <f:facet name="header">Department</f:facet>
                    <h:inputText value="#{degreePrograms.department}" size="20" />
                </h:column>

                <h:column>    	    
                    <f:facet name="header">PEOS</f:facet>  
                    <h:selectManyCheckbox value="#{degreePrograms.ownPEOList}" >
                        <f:selectItems value="#{degreePrograms.allPeoList}" var="d" itemValue="#{d}" itemLabel="#{d}"/>
                    </h:selectManyCheckbox>
                </h:column>
                <h:column>
                    <f:facet name="header">StudentOutcomes</f:facet>  
                    <h:selectManyCheckbox value="#{degreePrograms.ownSOList}" >
                        <f:selectItems value="#{degreePrograms.allSOList}" var="s" itemValue="#{s}" itemLabel="#{s}"/>
                    </h:selectManyCheckbox>
                </h:column>
            </h:dataTable>
            <p>
                <h:commandButton id='submit' value="Save" action="#{degreeProgramBean.saveDegreePrograms()}" />
            </p>    
        </h:form>
    </h:body>
</html>

